JavaScript
A5.audio.Playermute Method
Syntax
A5.audio.Player.mute(mute)
Arguments
- muteboolean
Whether or not to mute the audio.
Description
Set whether the audio playback is muted.
Example: Muting the AudioPlayer Control
The UX Component AudioPlayer control's JavaScript object can be used to control the audio playback on the client. The _play property of the object contains the audio player class methods.The example below demonstrates how you could programmatically mute the AudioPlayer control placed in a UX Component:
// Get the object for the AudioPlayer Control: var audioObj = {dialog.object}.getControl('AUDIOPLAYER'); if (audioObj) { audioObj._play.mute(); }
The AudioRecorderAndPlayer control's JavaScript object also has a _play property containing methods for the audio player class.
See Also